package com.slz3.business.module.systemManagement.sysRoleUser.repository;

import com.slz3.business.module.systemManagement.sysRoleUser.domain.SysRoleUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.UUID;

public interface SysRoleUserRepository extends JpaRepository<SysRoleUser, UUID>, JpaSpecificationExecutor<SysRoleUser>, SysRoleUserCustomizedRepository {
    void deleteSysRoleUserByUserUuid(UUID userUuid);
    void deleteSysRoleUserByRoleUuid(UUID roleUuid);

    int countByRoleUuid(UUID role);
}
